home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / g_scenar / hex_tmdl.zip / HEX_TMDL.ACS < prev    next >
Text File  |  1996-09-15  |  5KB  |  241 lines

  1. #include "common.acs"
  2.  
  3. #define minutes 5
  4.  
  5. int bothswitches;
  6. int switch1;
  7. int switch2;
  8. int inprison;
  9. int manaspawn;
  10. int torches;
  11. int fiveswitch;
  12.  
  13. script 1 (void)  
  14. {
  15.     if(bothswitches == 2)
  16.     {
  17.         Light_Fade(6, 160, 35);
  18.         bothswitches = 0;
  19.         switch1 = 0;
  20.         switch2 = 0;
  21.         inprison = 0;
  22.         ambientsound("KoraxVoiceReady", 127);
  23.         printbold(s:"ARE YOU READY TO DIE, PRISONER?");
  24.         delay(70);
  25.         Thing_Deactivate(150);
  26.         delay(35);
  27.         Thing_Deactivate(151);
  28.         delay(35);
  29.         Thing_Deactivate(152);
  30.     }
  31. }
  32.  
  33. script 2 (void)  
  34. {
  35.     if(inprison == 1)
  36.     {
  37.         if(switch1 == 0)
  38.         {
  39.             Floor_RaiseInstant(4, 0, 6);
  40.             bothswitches++;
  41.             switch1 = 1;
  42.         }
  43.         if(bothswitches == 2)
  44.         {
  45.             Light_Fade(6, 224, 35);
  46.         }
  47.     }
  48. }
  49.  
  50. script 3 (void)  
  51. {
  52.     if(inprison == 1)
  53.     {
  54.         if(switch2 == 0)
  55.         {
  56.             Floor_RaiseInstant(5, 0, 6);
  57.             bothswitches++;
  58.             switch2 = 1;
  59.         }
  60.         if(bothswitches == 2)
  61.         {
  62.             Light_Fade(6, 224, 35);
  63.         }
  64.     }
  65. }
  66.  
  67. script 4 (void)  
  68. {
  69.     if(inprison == 0)
  70.     {
  71.         if(lineside())
  72.         {
  73.             Thing_Activate(150);
  74.             Thing_Activate(151);
  75.             Thing_Activate(152);
  76.             Floor_LowerInstant(4, 0, 6);
  77.             Floor_LowerInstant(5, 0, 6);
  78.             ambientsound("PuzzleSuccess", 127);
  79.             printbold(s:"SONEONE HAS BEEN CAUGHT IN THE PRISON!");
  80.             inprison = 1;
  81.         }
  82.     }
  83. }
  84.  
  85. script 5 (void)  
  86. {
  87.     int var0;
  88.     int var1;
  89.  
  90.     var0 = 2;
  91.     print(s:"PLACING MANA: PLEASE WAIT...");
  92.     delay(105);
  93.     while(var0 < 77)
  94.     {
  95.         var1 = random(1, 3);
  96.         if(var1 == 1)
  97.         {
  98.             Thing_SpawnNoFog(var0, T_MANA1, 64);
  99.         }
  100.         else if(var1 == 2)
  101.         {
  102.             Thing_SpawnNoFog(var0, T_MANA2, 64);
  103.         }
  104.         else if(var1 == 3)
  105.         {
  106.             Thing_SpawnNoFog(var0, T_MANA3, 64);
  107.         }
  108.         thingsound(var0, "PickupPiece", 127);
  109.         delay(1);
  110.         var0++;
  111.     }
  112.     delay(105);
  113.     manaspawn = 1;
  114. }
  115.  
  116. script 6 OPEN
  117. {
  118.     int var0;
  119.     int var1;
  120.     int var2;
  121.  
  122.     if(manaspawn == 0)
  123.     {
  124.         delay(1);
  125.         restart;
  126.     }
  127.     var0 = 77;
  128.     print(s:"PLACING ARTIFACTS: PLEASE WAIT...");
  129.     delay(105);
  130.     while(var0 < 139)
  131.     {
  132.         var2 = random(1, 3);
  133.         if(var2 == 1)
  134.         {
  135.             var1 = random(11, 18);
  136.         }
  137.         else if(var2 == 2)
  138.         {
  139.             var1 = random(22, 26);
  140.         }
  141.         else if(var2 == 3)
  142.         {
  143.             var1 = random(68, 75);
  144.         }
  145.         Thing_SpawnNoFog(var0, var1, 64);
  146.         thingsound(var0, "PickupPiece", 127);
  147.         delay(1);
  148.         var0++;
  149.     }
  150.     manaspawn = 0;
  151.     if(torches==0)
  152.     {
  153.         ACS_Execute(10,1,0,0,0);
  154.     }
  155.     restart;
  156. }
  157.  
  158. script 7 OPEN
  159. {
  160.     int var0;
  161.  
  162.     var0 = random(30,120)*35;
  163.     delay(var0);
  164.     Thing_Activate(139);
  165.     delay(105);
  166.     Thing_Deactivate(139);
  167.     restart;
  168. }
  169.  
  170. script 8 OPEN
  171. {
  172.     delay(2100);
  173.     ambientsound("SwitchOtherLevel", 127);
  174.     FloorAndCeiling_RaiseByValue(1, 16, 48);
  175.     Light_Fade(1, 192, 35);
  176.     FloorAndCeiling_LowerByValue(2, 16, 48);
  177.     Light_Fade(2, 128, 35);
  178.     delay(2100);
  179.     ambientsound("SwitchOtherLevel", 127);
  180.     FloorAndCeiling_RaiseByValue(2, 16, 48);
  181.     Light_Fade(2, 192, 35);
  182.     FloorAndCeiling_LowerByValue(1, 16, 48);
  183.     Light_Fade(1, 128, 35);
  184.     restart;
  185. }
  186.  
  187. script 9 OPEN
  188. {
  189.     int var0;
  190.  
  191.     delay(1050);
  192.     var0 = random(8, 18);
  193.     Ceiling_CrushRaiseAndStay(var0, 16, 16);
  194.     restart;
  195. }
  196.  
  197. script 10 (void)  
  198. {
  199.     int var0;
  200.  
  201.     if(torches == 1)
  202.     {
  203.         terminate;
  204.     }
  205.     print(s:"LIGHTING TORCHES...");
  206.     delay(35);
  207.     Thing_Activate(140);
  208.     Light_Fade(1, 128, 35);
  209.     Light_Fade(2, 192, 35);
  210.     var0 = 3;
  211.     while(var0 < 19)
  212.     {
  213.         Light_Fade(var0, 160, 35);
  214.         var0++;
  215.     }
  216.     torches = 1;
  217. }
  218.  
  219. script 11 (int arg0)  
  220. {
  221.     fiveswitch++;
  222.     Floor_RaiseInstant(arg0, 0, 6);
  223.     if(fiveswitch == 5)
  224.     {
  225.         ACS_Execute(5, 1, 0, 0, 0);
  226.         delay(2100*minutes);
  227.         Floor_LowerInstant(19, 0, 6);
  228.         Floor_LowerInstant(20, 0, 6);
  229.         Floor_LowerInstant(21, 0, 6);
  230.         Floor_LowerInstant(22, 0, 6);
  231.         Floor_LowerInstant(23, 0, 6);
  232.         fiveswitch = 0;
  233.     }
  234. }
  235.  
  236. script 12 OPEN
  237. {
  238.     fiveswitch = 4;
  239.     ACS_Execute(11, 1, 24, 0, 0);
  240. }
  241.